<?php $this->load->view('layout/header'); ?>
<script src="/static/bk/js/table.js" type="text/javascript"></script>
<div>
</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>
<div>
</div>
    <div id="container">
        <!--查询表单开始-->
        <div id="DivQuery">
            <div id="floatBoxBg" style="filter: alpha(opacity=0); opacity: 0;">
            </div>
            <div id="floatBox" class="floatBox">
                <div id="drag" class="title" onmousedown="DragDialog()">
                    <h4>
                        查询</h4>
                    <span>关闭</span></div>
                <div class="content">
                    <form action="<?php echo b_url('config/admingroup')?>" method='post' >
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_query">
                        <tr class="table_query_row">
                            <td style="width: 15%" align="right">
                                管理组名称：
                            </td>
                            <td>
                                <input name="admingroupname" type="text" id="txtAdminGroupName" />
                            </td>
                            <td style="width: 15%" align="right">
                                状态：
                            </td>
                            <td>
                                <span id="radIsClose">
                                    <input id="radIsClose_0" type="radio" name="isclose" value="" checked="checked" /><label for="radIsClose_0">不限</label>
                                    <input id="radIsClose_1" type="radio" name="isclose" value="0" /><label for="radIsClose_1">开放</label>
                                    <input id="radIsClose_2" type="radio" name="isclose" value="1" /><label for="radIsClose_2">关闭</label>
                                </span>
                            </td>
                        </tr>
                        <tr class="table_query_btn">
                            <td align="right" style="width: 15%">
                            </td>
                            <td>
                                <input type="submit" value="查询" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;btnQuery&quot;, &quot;&quot;, false, &quot;&quot;, &quot;AdminGroup.aspx&quot;, false, false))" id="btnQuery" />
                                <input type="button" value="返回" onclick="javascript:HiddenSearchDialog();" />
                            </td>
                            <td align="right" style="width: 15%">
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                    </form>
                </div>
            </div>
        </div>
        <!--查询表单结束-->
        <!--导航开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_nav">
            <tr>
                <td>
                    管理组管理&gt;管理列表
                </td>
            </tr>
        </table>
        <!--导航结束-->
        <!--操作选项开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_op">
            <tr>
                <td>
                    操作选项：
                    <a href="<?php echo b_url('config/admingroup_add')?>">添加管理组</a>
                    <a onclick="javascript:return checkEdit(this);" name="admingroupid" src="<?php echo b_url('config/admingroup_add/')?>" id="lbtnEdit" href="javascript:;)">修改管理组</a>
                    <a onclick="javascript:return checkDel(this);" name="admingroupid" src="<?php echo b_url('config/delete_info/admingroup/admingroupid/admingroup/')?>" id="lbtnDel" href="javascript:;)">删除管理组</a>
                    <a onclick="javascript:return checkOperate(this);" name="admingroupid" src="<?php echo b_url('config/edit_close/admingroup/admingroupid/admingroup/0/')?>" id="lbtnOpen" href="javascript:;">批量开放</a>
                    <a onclick="javascript:return checkOperate(this);" name="admingroupid" src="<?php echo b_url('config/edit_close/admingroup/admingroupid/admingroup/1/')?>" id="lbtnClose" href="javascript:;">批量关闭</a>
                    <a href="javascript:SearchDialog()">查询管理组</a>
                </td>
            </tr>
        </table>
        <!--操作选项结束-->
        <!--列表开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_list" id="TbList">
            <tr class="table_list_title">
                <td style="width: 2%">
                    <input type="checkbox" name="checkbox" value="checkbox" onclick="javascript:checkAll(this,'AdminGroupID')" />
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=AdminGroupID&AscDesc=desc&txtAdminGroupName=&radIsClose=-1&page=1')" title="点击排序">
                    编号
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=AdminGroupName&AscDesc=desc&txtAdminGroupName=&radIsClose=-1&page=1')" title="点击排序">
                    管理组名称
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=ListID&AscDesc=desc&txtAdminGroupName=&radIsClose=-1&page=1')" title="点击排序">
                    排序号<img src="../Themes/Images/up.gif"/>
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=AdminID&AscDesc=desc&txtAdminGroupName=&radIsClose=-1&page=1')" title="点击排序">
                    创建人
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=AddTime&AscDesc=desc&txtAdminGroupName=&radIsClose=-1&page=1')" title="点击排序">
                    创建时间
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=IsClose&AscDesc=desc&txtAdminGroupName=&radIsClose=-1&page=1')" title="点击排序">
                    状态
                </td>
                <td style="width: 10%">
                    操作
                </td>
            </tr>
                <?php foreach($list as $k=>$v): ?>
                    <tr class="table_list_row_normal">
                        <td style="width: 2%">
                            <input name="admingroupid" type="checkbox" id="AdminGroupID" value="<?php echo $v['admingroupid']?>" onclick="javascript:TrColor2('AdminGroupID',1)" />
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('AdminGroupID',1)">
                            <?php echo $v['admingroupid']?>
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('AdminGroupID',1)">
                            <a href="<?php echo b_url('config/admingroup_add/').$v['admingroupid'];?>"><?php echo $v['admingroupname']?></a>
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('AdminGroupID',1)">
                            <?php echo $v['listid']?>
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('AdminGroupID',1)">
                            <?php echo $v['adminname']?>
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('AdminGroupID',1)">
                            <?php echo $v['addtime']?>
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('AdminGroupID',1)">
                            <?php 
                                if($v['isclose'] == 0){
                                    echo '开放';
                                }elseif($v['isclose'] == 1){
                                    echo '<font color="red">关闭</font>';
                                }
                            ?>
                        </td>
                        <td style="width: 10%" onclick="javascript:TrColor('AdminGroupID',1)">
                            <a id="repList_ctl00_lbtnSetAdmin" href="<?php echo b_url('config/admingroup_setadmin/').$v['admingroupid']?>">分配管理员</a>
                            <a id="repList_ctl00_lbtnSetLimit" href="javascript:__doPostBack(&#39;repList$ctl00$lbtnSetLimit&#39;,&#39;&#39;)">分配操作权限</a>
                        </td>
                    </tr>
                <?php endforeach; ?>
        </table>
        <!--列表结束-->
        <!--分页开始-->
        <?php $pagination->show();?>
        <!--分页结束-->
        <div class="note">
            注:<br>
            1.管理组关闭后,除超级管理员外,属于该组的管理员将不拥有该组的权限<br>
        </div>
    </div>
<?php $this->load->view('layout/footer'); ?>

